<div class="grid_4">
	<div class="da-panel">
		<div class="da-panel-header">
			<span class="da-panel-title"> <img
				src="images/icons/color/accept.png" alt="" /> Edit group user
			</span>
		</div>
		<div class="da-panel-content">
			<form id="da-ex-validate1-edit" class="da-form" action="" method="post"
				enctype="multipart/form-data">
				<?php if($this->Message!=''){?>
					<div class="da-message success">
	                     <?php echo $this->Message;?>
	                </div>
				<?php }?>
				<div id="da-ex-val1-error" class="da-message error"
					style="display: none;"></div>
				<div class="da-form-inline">
					<div class="da-form-row">
						<label>Name<span class="required">*</span></label>
						<div class="da-form-item large">
							<input type="text" name="username"
								value="<?php echo $this->User->username;?>" />
						</div>
					</div>
					<div class="da-form-row">
						<label>Password<span class="required">*</span></label>
						<div class="da-form-item large">
							<input type="password" name="password"
								value="" />
						</div>
					</div>
					<div class="da-form-row">
						<label>First name<span class="required">*</span></label>
						<div class="da-form-item large">
							<input type="text" name="first_name"
								value="<?php echo $this->User->first_name;?>" />
						</div>
					</div>
					<div class="da-form-row">
						<label>Last name<span class="required">*</span></label>
						<div class="da-form-item large">
							<input type="text" name="last_name"
								value="<?php echo $this->User->last_name;?>" />
						</div>
					</div>
					<div class="da-form-row">
						<label>Email<span class="required">*</span></label>
						<div class="da-form-item large">
							<input type="text" name="email"
								value="<?php echo $this->User->email;?>" />
						</div>
					</div>
					<div class="da-form-row">
						<label>Avatar <span class="required">*</span></label>
						<div class="da-form-item large">
							<img style="width: 150px;height: 120px;padding:10px 0px" alt="<?php echo $this->User->username?>" src="<?php echo $this->User->getThumbImage()?>">
							<input type="file" name="image" class="da-custom-file" />

						</div>
						<label for="file1" class="error" generated="true" style="display: none;"></label>
					</div>
					<div class="da-form-row">
						<label>Birth day<span class="required">*</span></label>
						<div class="da-form-item large">
							<input type="text" name="birthday"
								value="<?php echo $this->User->birthday;?>" />
						</div>
					</div>
					<div class="da-form-row">
						<label>Group<span class="required">*</span></label>
						<div class="da-form-item small">
							<?php echo $this->formSelect('group_id',$this->User->group_id,array(),UserGroup::getOption(array('0'=> '---Select---')))?>
						</div>
					</div>
					
					<div class="da-form-row">
						<label>Status</label>
						<div class="da-form-item small">
							<span class="formNote">Status of attribute</span>
							<?php echo $this->formSelect('status',$this->User->status,array(),array('1'=>'Enable','0'=>'Disable'))?>
						</div>
					</div>
				</div>
				<div class="da-button-row">
					<input type="submit" value="Update" class="da-button green" />
				</div>
			</form>
		</div>
	</div>
</div>